Git n GitHub

Basics

Some common commands of Unix system

Git Track

git commit -a -m “modified”

After all these steps at local system, now two more steps to push at GitHub

Initialize Git Repository

Clone Repository

Configure Git: To create username & email

Add and Commit Changes

Status View

Remove File

Log View

Note: q is used to logout log area if needed.

Push Changes

Pull Changes

Undo Changes

If someone modified your file and now it is having lots of errors in it. In that case we may wish to come back to the previous version of our code/file.

Know Difference

Branching

Create Branch

To Change Branch Name

Show Branch

Switch Branch

Create and Switch Branch

Delete Branch

Merging

Merge Branch

Note: before merging, make sure you are in main branch

Remote Repositories

A repository is a place where you can store your code, your files, each file’s version history on GitHub {GitHub → It is a website & service that hosts & tracks the changes of projects using git, an open source version control systems - more importantly cloud based version control system}.

This helps in tracking the software changes.

Local Repositories: made in system by git/git bash

Remote Repositories:

These are repositories made in GitHub, and can make as many public n private repository.

Add Remote

Remove Remote

Remote check

GitHub

Create Repository

Push to GitHub

Pull from GitHub

SSH Authentication

Git Ignore

Git Hosting

README

Troubleshooting

Resources